class Factory

  def Factory.create(type)
    map ={ :deck => Deck, :table => Table, :gamer => Gamer, :opponent => Opponent }
    return  map[type].new
  end

end